import {BaseEntity,Column,Entity,Index,JoinColumn,JoinTable,ManyToMany,ManyToOne,OneToMany,OneToOne,PrimaryColumn,PrimaryGeneratedColumn,RelationId} from "typeorm";


@Entity("fa_user_money_log",{schema:"fastadmin" } )
export class fa_user_money_log {

    @PrimaryGeneratedColumn({
        type:"int", 
        name:"id"
        })
    id:number;
        

    @Column("int",{ 
        nullable:false,
        default: () => "'0'",
        name:"user_id"
        })
    user_id:number;
        

    @Column("decimal",{ 
        nullable:false,
        default: () => "'0.00'",
        scale:2,
        name:"money"
        })
    money:string;
        

    @Column("decimal",{ 
        nullable:false,
        default: () => "'0.00'",
        scale:2,
        name:"before"
        })
    before:string;
        

    @Column("decimal",{ 
        nullable:false,
        default: () => "'0.00'",
        scale:2,
        name:"after"
        })
    after:string;
        

    @Column("varchar",{ 
        nullable:false,
        name:"memo"
        })
    memo:string;
        

    @Column("int",{ 
        nullable:true,
        name:"createtime"
        })
    createtime:number | null;
        
}
